package com.mini.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 权限表
 * @TableName sys_permission
 */
@TableName(value ="sys_permission")
@Data
public class SysPermission implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 权限名称
     */
    private String name;

    /**
     * 菜单模块ID

     */
    private Integer menuId;

    /**
     * URL权限标识
     */
    private String urlPerm;

    /**
     * 按钮权限标识
     */
    private String btnPerm;

    /**
     * 0禁用 1启用
     */
    private Integer status;

    /**
     * 
     */
    private LocalDateTime gmtCreate;

    /**
     * 
     */
    private LocalDateTime gmtModified;

    /**
     * 权限对应的角色
     */
    @TableField(exist = false)
    private List<String> roles;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}